#include <QCoreApplication>
#include <iostream>
using namespace std;

int main()
{
    int m, d;
    cout << "Vvedite mec9c: ";
    cin >> m;
    cout << "Vvedite den`: ";
    cin >> d;
    switch (m)
    {
    case 1:
            if (d <20)
                cout << "Kozerog"<<endl;
            else cout << "Vodoley"<<endl;
            break;
    case 2:
           if (d <19)
                cout << "Vodoley"<<endl;
            else cout << "Ribi"<<endl;
            break;
    case 3:
            if (d <20)
                cout << "Ribi"<<endl;
            else cout << "Oven"<<endl;
            break;
    case 4:
            if (d <20)
                cout << "Oven"<<endl;
            else cout << "Telec"<<endl;
            break;
    case 5:
            if (d <21)
                cout << "Telec"<<endl;
            else cout << "Blizneci"<<endl;
            break;
    case 6:
            if (d <21)
                cout << "Blizneci"<<endl;
            else cout << "Rak"<<endl;
            break;
    case 7:
            if (d <22)
                cout << "Rak"<<endl;
            else cout << "Lev"<<endl;
            break;
    case 8:
            if (d <23)
                cout << "Lev"<<endl;
            else cout << "Deva"<<endl;
            break;
    case 9:
            if (d <23)
                cout << "Deva"<<endl;
            else cout << "Vesi"<<endl;
            break;
    case 10:
            if (d <23)
                cout << "Vesi"<<endl;
            else cout << "Skorpion"<<endl;
            break;
    case 11:
            if (d <22)
                cout << "Skorpion"<<endl;
            else cout << "Strelec"<<endl;
            break;
    case 12:
            if (d <21)
                cout << "Strelec"<<endl;
            else cout << "Kozerog"<<endl;
    }


    return 0;
}
